package com.damenggroup.base.callback.databind

import androidx.databinding.ObservableField

/**
 *Customized ObservableField in which the value is Double.it provides default value
 * to avoid determining whether its value is null when accessing its value
 */
class DoubleObservableField(value: Double = 0.0) : ObservableField<Double>(value) {

    override fun get(): Double {
        return super.get()!!
    }

}